
<!--/*
 * Created by JetBrains PhpStorm.
 * User: A.Delpiero
 * Date: 11/10/2554
 * Time: 23:41 น.
 * To change this template use File | Settings | File Templates.
 */-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>statistic</title>
</head>
<body>

    <?php
    include('statistic_function.php');
    //menu for meeting room , lab room
    $menu = new menu();
    $menu->head_stat();

    //list menu for select type of graph , type of view
    $list = new listMenu();
    $list->create_form('form','get','statistic.php');
    $list->type_view('view');
    $list->type_graph('graph');
    $list->button();
    $list->close_form();
   
    //echo $_SERVER["REQUEST_URI"]."<br>"; // URL
    echo "<hr>";
    if (($_GET['type_view']== 'week') && ($_GET['type_graph']== 'pie')){ // Get txtName
        echo ('pie');
        ?>
        <img src="lab_pie_week.php" /><?php
        

    }
    elseif (($_GET['type_view']== 'week') && ($_GET['type_graph']== 'bar')){
        echo ('bar');
        ?>
        <img src="lab_bar_week.php" /><?php
    }
    elseif(($_GET['type_view']== 'week') && ($_GET['type_graph']== 'line')){
        echo ('line');
        ?>
        <img src="lab_line_week.php" /><?php
    }
    elseif (($_GET['type_view']== 'month') && ($_GET['type_graph']== 'pie')){ // Get txtName
        echo ('piemonth');?>
        <img src="lab_pie_month.php" /><?php
    }
    elseif (($_GET['type_view']== 'month') && ($_GET['type_graph']== 'bar')){ // Get txtName
        echo ('barmonth');
        ?>
        <img src="lab_bar_month.php" /><?php

    }
    elseif (($_GET['type_view']== 'month') && ($_GET['type_graph']== 'line')){ // Get txtName
        echo ('linemonth');
        ?>
        <img src="lab_line_month.php" /><?php
    }

     "<hr>";
    ?>
</body>
</html>
